package gao.xaiolei.enity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

//任务接收人表
@Entity
@Table(name = "task_receiver")
@Data
public class TaskReceiver {

	@EmbeddedId
	private TaskReceiverId id;

	// 任务状态(待审核、待执行、已完成、已取消)
	@Column(name = "TASK_STATUS", nullable = false)
	private Integer status;

	public TaskReceiver(String taskId, String userId,int status) {
		super();
		this.id = new TaskReceiverId(taskId, userId);
		this.status=status;
	}

	public TaskReceiver() {
		super();
	}

}
